package com.sinosoft.cnmuseum.dao.i;

import java.util.HashMap;
import java.util.List;

import com.sinosoft.commontools.record.Record;

public interface IBaseDao {
	
	public Record getById(int id);
	public List<Record> getAll();
	public List<Record> getListByProperty(HashMap<String, Object> map);
	public List<Record> getListByProperty(Record record);
	public Record getListByProperty(HashMap<String, Object> map, String sort);
	public Record getPageByProperty(HashMap<String, Object> map, int pagenumber, int pagesize, String column, boolean isorderby);
	public List<Record> getBySql(String sql);
	
	public boolean insert(Record r);
	public boolean insert(List<Record> list);
	
	public boolean update(Record r);
	public boolean update(List<Record> list);
	
	public boolean delete(Record r);
	public boolean delete(List<Record> list);
	public boolean deleteById(int id);

}
